home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 1 Issue 2 / PDCD-1 - Issue 02.iso / _utilities / utilities / 003 / _gs / !GS / h / GXBITMAP < prev    next >
Text File  |  1991-10-25  |  2KB  |  39 lines

  1. /* Copyright (C) 1989 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* gxbitmap.h */
  21. /* Definitions for stored bitmaps for Ghostscript */
  22.  
  23. /*
  24.  * Structure for describing stored bitmaps.
  25.  * Bitmaps are stored bit-big-endian (i.e., the 2^7 bit of the first
  26.  * byte corresponds to x=0), as a sequence of bytes (i.e., you can't
  27.  * do word-oriented operations on them if you're on a little-endian
  28.  * platform like the Intel 80x86 or VAX).  Each scan line must start on
  29.  * a (32-bit) word boundary, and hence must be is padded to a word boundary,
  30.  * although this should rarely be of concern, since the raster and width
  31.  * are specified individually.  The first scan line corresponds to y=0
  32.  * in whatever coordinate system is relevant.
  33.  */
  34. struct gx_bitmap_s {
  35.     byte *data;
  36.     int raster;         /* bytes per scan line */
  37.     int width, height;
  38. };
  39.